'use strict'
let mongoose = require('mongoose');

mongoose.connect("mongodb://127.0.0.1/user", function(err) {
	if (err) {
		logger.error('connect to %s error:', "mongodb://127.0.0.1/user", err.message);
		process.exit(1);
	}
});

require('./userModel');
exports.User = mongoose.model('User');

